package com.airbnb.mvrx.sample.features.helloworld

import android.os.Bundle
import com.airbnb.mvrx.fragmentViewModel
import com.airbnb.mvrx.sample.core.BaseFragment
import com.airbnb.mvrx.sample.core.MvRxEpoxyController
import com.airbnb.mvrx.sample.core.simpleController
import com.airbnb.mvrx.sample.views.marquee
import timber.log.Timber

class HelloWorldEpoxyFragment : BaseFragment() {

    private val viewModel: HelloWorldViewModel by fragmentViewModel()
    override fun epoxyController() = simpleController(viewModel) { state ->
        marquee {
            id("marquee")
            title(state.title)
            Timber.d("state -> marquee %s ", state.title)
        }
    }
}